export function sum(a,b) {
    console.log(sum.length,arguments)
  return a + b;
}


function getSum(num){
     console.log(getSum.length)
     console.log(arguments)
    let sum = 0;
    sum = num * (num + 1) / 2;
    // for(let i = 0; i <= num; i++){
    //     sum+= i;
    // }
    return sum
}

console.log(getSum(10000));
